import request from '@/utils/request'

// 查询车辆进场记录列表
export function listParkEnter(query) {
  return request({
    url: '/system/parkEnter/list',
    method: 'get',
    params: query
  })
}

// 查询车辆进场记录详细
export function getParkEnter(id) {
  return request({
    url: '/system/parkEnter/' + id,
    method: 'get'
  })
}

// 新增车辆进场记录
export function addParkEnter(data) {
  return request({
    url: '/system/parkEnter',
    method: 'post',
    data: data
  })
}

// 修改车辆进场记录
export function updateParkEnter(data) {
  return request({
    url: '/system/parkEnter',
    method: 'put',
    data: data
  })
}

// 删除车辆进场记录
export function delParkEnter(id) {
  return request({
    url: '/system/parkEnter/' + id,
    method: 'delete'
  })
}

// 导出车辆进场记录
export function exportParkEnter(query) {
  return request({
    url: '/system/parkEnter/export',
    method: 'get',
    params: query
  })
}